package cn.com.seederland.gkrpc;

import cn.com.seederland.gkrpc.client.RpcClient;

/**
 * @ClassName Client
 * @Author SighFate
 * @Date 2020/10/17 15:10
 * @Version 1.0
 * @Description 模拟客户端
 */
public class Client {

    public static void main(String[] args) {
        RpcClient client = new RpcClient();
        CalcService service = client.getProxy(CalcService.class);
        int res1 = service.add(1 , 3);
        int res2 = service.minus(5, 2);

        System.out.println(res1);
        System.out.println(res2);
    }
}
